{include file="admin/public/header" /}
<div class="aw-content-wrap">
    <div class="mod">
        <div class="mod-head">
            
            <div class="ibox-title">
                        <h5>编辑导航</h5>
                        <div class="ibox-tools">
                            <a href="{:url('admin/nv/index')}" class="btn btn-primary btn-xs">返回列表</a>
                        </div>
                    </div>
        </div>
        <div class="tab-content mod-content">
                <form action="{:url('admin/ajax/save_nv_menu_index')}" class="cmzForm" enctype="multipart/form-data" method="post" onsubmit="return false">
                <table class="table table-striped">
                    <tr>
                        <td>
                            <div class="form-group">
                                <span class="col-sm-4 col-xs-3 control-label">标题:</span>
                                <div class="col-sm-5 col-xs-8">
                                    <input class="form-control" name="title" type="text" value="{$nav_menu.title}" />
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="form-group">
                                <span class="col-sm-4 col-xs-3 control-label">所属分类:</span>
                                <div class="col-sm-5 col-xs-8">
                                <select name="catid" id="" class="form-control">
                                <?php foreach ($cats as $k => $v): ?>

                                    <option value="{$v.id}" <?php if($v['id']==$nav_menu['catid']){ ?> selected='selected' <?php } ?>>{$v.title}</option>

                                     <?php endforeach ?>
                                </select>
                                 
                                </div>
                            </div>
                        </td>
                    </tr>
                     <tr>
                        <td>
                            <div class="form-group">
                                <span class="col-sm-4 col-xs-3 control-label">模型{module}:</span>
                                <div class="col-sm-5 col-xs-8">
                                    <input class="form-control" name="module" type="text" value="{$nav_menu.module}" />
                                </div>
                            </div>
                        </td>
                    </tr>
                     <tr>
                        <td>
                            <div class="form-group">
                                <span class="col-sm-4 col-xs-3 control-label">控制器{controller}:</span>
                                <div class="col-sm-5 col-xs-8">
                                    <input class="form-control" name="controller" type="text" value="{$nav_menu.controller}" />
                                </div>
                            </div>
                        </td>
                    </tr>
                     <tr>
                        <td>
                            <div class="form-group">
                                <span class="col-sm-4 col-xs-3 control-label">方法{action}:</span>
                                <div class="col-sm-5 col-xs-8">
                                    <input class="form-control" name="action" type="text" value="{$nav_menu.action}" />
                                </div>
                            </div>
                        </td>
                    </tr>
                      <tr>
                        <td>
                            <div class="form-group">
                                <span class="col-sm-4 col-xs-3 control-label">url:</span>
                                <div class="col-sm-5 col-xs-8">
                                    <input class="form-control" name="url" type="text" value="{$nav_menu.url}" />
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="form-group">
                                <span class="col-sm-4 col-xs-3 control-label">排序:</span>
                                <div class="col-sm-5 col-xs-8">
                                    <input class="form-control" name="sort" type="text" value="<?php if($nav_menu['sort']){ echo $nav_menu['sort'];}else{ echo "0";} ?>" />
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="form-group">
                                <span class="col-sm-4 col-xs-3 control-label">打开方式:</span>
                                <div class="col-sm-5 col-xs-8">
                                   <select name="target" id="" class="form-control">
                                        <option value="_self" <?php if($nav_menu['target']=="_self"){ ?> selected="selected" <?php } ?>>同一框架中打开</option>
                                        <option value="_blank" <?php if($nav_menu['target']=="_blank"){ ?> selected="selected" <?php } ?>>在新窗口中打开</option>
                                        <option value="_parent" <?php if($nav_menu['target']=="_parent"){ ?> selected="selected" <?php } ?>>在父框架中打开</option>
                                        <option value="_top" <?php if($nav_menu['target']=="_top"){ ?> selected="selected" <?php } ?>>在整个窗口中打开</option>
                                        
                                    </select>
                                </div>
                            </div>
                        </td>
                    </tr>
                   
                    <tr>
                        <td>
                            <div class="form-group">
                                <label class="col-sm-4 col-xs-3 control-label">状态:</label>
                                <div class="col-sm-5 col-xs-8">
                                    <select name="status" id="" class="form-control">
                                        <option value="1" <?php if($nav_menu['status']=="1"){ ?> selected="selected" <?php } ?>>显示</option>
                                        <option value="0" <?php if($nav_menu['status']=="0"){ ?> selected="selected" <?php } ?>>隐藏</option>
                                    </select>
                                </div>
                            </div>
                        </td>
                    </tr>
         </tfoot>
            </table>
             <div class="mod-table-foot" style="margin-left:20px;">
             <input type="hidden" name="id" value="{$nav_menu.id}">
                <a class="btn btn-success cmzPost" target="" >提交</a>
             </div>
            </form>
        </div>
    </div>
</div>
{include file="admin/public/footer" /}